/* Modern, roundy UI inspired by MacOS/iOS, with animations */

body {
    font-family: 'SF Pro Display', 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #eaf0fa 0%, #f7f7fa 100%);
    margin: 0;
    padding: 0;
    transition: background 0.4s cubic-bezier(.4,0,.2,1), color 0.4s cubic-bezier(.4,0,.2,1);
}

.container {
    max-width: 700px;
    margin: 48px auto;
    background: rgba(255,255,255,0.85);
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(60,60,90,0.10), 0 1.5px 6px rgba(60,60,90,0.08);
    padding: 40px 32px;
    backdrop-filter: blur(8px);
    transition: background 0.4s cubic-bezier(.4,0,.2,1), color 0.4s cubic-bezier(.4,0,.2,1);
}

h1 {
    text-align: center;
    margin-bottom: 16px;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #222;
    text-shadow: 0 2px 8px rgba(60,60,90,0.08);
}

h1.dark-mode {
    color: #fff;
}

.about {
    text-align: center;
    margin-bottom: 32px;
    color: #444;
    font-size: 1.2rem;
    border-radius: 24px;
    background: rgba(245,245,255,0.6);
    padding: 18px 0;
    box-shadow: 0 1px 4px rgba(60,60,90,0.04);
    transition: background 0.4s, color 0.4s;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
}

.social-links a {
    color: #444;
    font-size: 2.4rem;
    background: rgba(240,240,255,0.7);
    border-radius: 50%;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(60,60,90,0.08);
    transition: color 0.2s, background 0.3s, transform 0.3s cubic-bezier(.4,0,.2,1);
    outline: none;
    border: none;
    position: relative;
}

.social-links a:hover, .social-links a:focus {
    color: #0077ff;
    background: rgba(220,235,255,0.95);
    transform: scale(1.18) translateY(-4px);
    box-shadow: 0 6px 24px rgba(0,119,255,0.10);
}

.icon-animate {
    animation: bounce 0.4s cubic-bezier(.4,0,.2,1);
}

@keyframes bounce {
    0% { transform: scale(1) translateY(0); }
    40% { transform: scale(1.22) translateY(-10px);}
    60% { transform: scale(0.98) translateY(2px);}
    100% { transform: scale(1) translateY(0);}
}

.toggle-btn {
    position: absolute;
    top: 32px;
    right: 32px;
    background: rgba(240,240,255,0.7);
    border: none;
    font-size: 2.4rem;
    cursor: pointer;
    color: #444;
    border-radius: 50%;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(60,60,90,0.08);
    transition: color 0.2s, background 0.3s, transform 0.3s cubic-bezier(.4,0,.2,1);
    z-index: 10;
}

.toggle-btn:hover, .toggle-btn:focus {
    color: #0077ff;
    background: rgba(220,235,255,0.95);
    transform: scale(1.12) rotate(-10deg);
}

.toggle-animate {
    animation: toggle-pop 0.4s cubic-bezier(.4,0,.2,1);
}

@keyframes toggle-pop {
    0% { transform: scale(1) rotate(0deg);}
    40% { transform: scale(1.18) rotate(18deg);}
    60% { transform: scale(0.98) rotate(-8deg);}
    100% { transform: scale(1) rotate(0deg);}
}

/* Add to your style block or CSS file */
.tab-btn {
    background: rgba(240,240,255,0.7);
    border: none;
    border-radius: 18px;
    padding: 10px 22px;
    font-size: 1rem;
    color: #444;
    font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(60,60,90,0.08);
    transition: background 0.3s, color 0.3s, transform 0.2s;
}
.tab-btn.active, .tab-btn:focus {
    background: #e10600;
    color: #fff;
    transform: scale(1.05);
}
body.dark-mode .tab-btn {
    background: rgba(40,44,54,0.7);
    color: #eee;
}
body.dark-mode .tab-btn.active, body.dark-mode .tab-btn:focus {
    background: #e10600;
    color: #fff;
}

/* Dark mode styles */
body.dark-mode {
    background: linear-gradient(135deg, #23262f 0%, #181a20 100%);
    color: #eaeaea;
}

.container.dark-mode {
    background: rgba(35,38,47,0.92);
    color: #eaeaea;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 1.5px 6px rgba(0,0,0,0.12);
}

.about.dark-mode {
    background: rgba(40,44,54,0.7);
    color: #ccc;
}

.social-links a.dark-mode {
    color: #eaeaea;
    background: rgba(40,44,54,0.7);
}

.social-links a.dark-mode:hover, .social-links a.dark-mode:focus {
    color: #ffd700;
    background: rgba(60,70,90,0.95);
    box-shadow: 0 6px 24px rgba(255,215,0,0.10);
}

body.dark-mode .toggle-btn {
    color: #eaeaea;
    background: rgba(40,44,54,0.7);
}

body.dark-mode .toggle-btn:hover, body.dark-mode .toggle-btn:focus {
    color: #ffd700;
    background: rgba(60,70,90,0.95);
}

/* Blog section styles */
.blog-section {
    margin: 0 auto;
    padding: 40px 32px;
    border-radius: 32px;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 8px 32px rgba(60,60,90,0.10), 0 1.5px 6px rgba(60,60,90,0.08);
    transition: background 0.4s cubic-bezier(.4,0,.2,1), color 0.4s cubic-bezier(.4,0,.2,1);
}

.blog-section h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #222;
    text-align: center;
}

.blog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-list li {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(240,240,255,0.7);
    transition: background 0.4s cubic-bezier(.4,0,.2,1), color 0.4s cubic-bezier(.4,0,.2,1);
}

.blog-list li:hover {
    background: rgba(220,235,255,0.95);
}

.blog-list a {
    text-decoration: none;
    color: #0077ff;
    font-weight: 500;
    transition: color 0.3s cubic-bezier(.4,0,.2,1);
}

.blog-list a:hover {
    color: #0056b3;
}

.blog-section .blog-list {
    color: #222; /* Black letters for light mode */
    background: rgba(245,245,255,0.6);
    transition: background 0.4s, color 0.4s;
}

.blog-section.dark-mode .blog-list {
    color: #fff; /* White letters for dark mode */
    background: rgba(40,44,54,0.7);
}

.blog-section.dark-mode .blog-list {
    background: rgba(40,44,54,0.7);
    color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 18px 6px;
        border-radius: 18px;
    }
    .toggle-btn {
        top: 12px;
        right: 12px;
        font-size: 2rem;
        padding: 8px;
    }
    .social-links {
        gap: 16px;
    }
    .social-links a {
        font-size: 1.6rem;
        padding: 10px;
    }
}
